<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<link rel="stylesheet" type="text/css" href="Public/bootstrap/css/bootstrap.min.css"/>
	<style>
	body{
	
	width: 600px;
	margin:0 auto;
	padding: 100;}
	td{
	align: center;}
	</style>
</head>
<body>		
		
		<table class="table table-bordered">
  <tr>	
  		<td>id号</td>
		<td>姓名</td>
		<td>国籍</td>
		<td>编辑</td>

		</tr>
		{{foreach from=$data key=k item=v}}
		<tr>
		<td>{{$v.id}}</td>
		<td>{{$v.name}}</td>
		<td>{{$v.cname}}</td>
		<td>
		<a href="index.php?m=Home&c=Study&a=edit&id={{$v.id}}"><button type="button" class="btn btn-info">变更信息</button></a>
		<a href="index.php?m=Home&c=Study&a=del&id={{$v.id}}"><button type="button" class="btn btn-warning">删除信息</button></a>
		</td>

		</tr>
		{{/foreach}}
		
		<a href="index.php?m=Home&c=Study&a=add&cid={{$smarty.get.cid}}"><button type="button" class="btn btn-danger">添加学生</button></a>
		</table>
	<hr />
		<a href="index.php"><button type="button" class="btn btn-danger">返回管理页</button></a>

</body>
</html>